import request from '@/utils/fetch'

export function login (obj) {
  return request({
    url: '/api/auth/authentication/form',
    // url: 'api/login',
    method: 'post',
    // data: {
    //   username,
    //   password
    // }
    data: obj
  })
}

export function getInfo (token) {
  return request({
    url: 'http://10.30.90.55:9991/api/auth/jwt/userInfo',
    method: 'get',
    params: { token }
  })
}

export function logout () {
  return request({
    url: '/api/auth/jwt/logout',
    // url: 'api/logout',
    method: 'post'
  })
}
